package com.moonshineproject.events
{
	import flash.display.DisplayObject;
	import flash.events.Event;

	public class CloseTabEvent extends Event
	{
		public static const EVENT_CLOSE_TAB:String       = "closeTabEvent";
		public static const EVENT_TAB_CLOSED:String      = "tabClosedEvent";
		public static const EVENT_ALL_TABS_CLOSED:String = "allTabsClosed";
		
		public var tab:DisplayObject;
		public var forceClose:Boolean;
		
		public function CloseTabEvent(type:String, targetEditor:DisplayObject, forceClose:Boolean=false)
		{
			this.tab = targetEditor;
			this.forceClose = forceClose;
			
			super(type, false, false);
		}
		
	}
}